]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell/plugin: Stop implementing plugin_info()
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 21 Oct 2024 21:23:29 +0000 (23:23 +0200)
committerMarge Bot <marge-bot@gnome.org>
Tue, 22 Oct 2024 10:57:36 +0000 (10:57 +0000)
The hook would be optional if anything called `meta_plugin_get_info()`,
except that nothing has done so for the last ten years.

It seems a bit pointless to export information that is completely
unused, in particular as we never updated it ("version 0.1"?!),
so just stop doing that.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3524>

src/gnome-shell-plugin.c

index f978aba8d23935234639549a2b6911cbe021c7a1..188f589954f4b95592e4573d9de50878a8d2f4a7 100644 (file)
@@ -210,20 +210,6 @@ gnome_shell_plugin_confirm_display_change (MetaPlugin *plugin)
   _shell_wm_confirm_display_change (get_shell_wm ());
 }
 
-static const MetaPluginInfo *
-gnome_shell_plugin_plugin_info (MetaPlugin *plugin)
-{
-  static const MetaPluginInfo info = {
-    .name = "GNOME Shell",
-    .version = "0.1",
-    .author = "Various",
-    .license = "GPLv2+",
-    .description = "Provides GNOME Shell core functionality"
-  };
-
-  return &info;
-}
-
 static MetaCloseDialog *
 gnome_shell_plugin_create_close_dialog (MetaPlugin *plugin,
                                         MetaWindow *window)
@@ -272,8 +258,6 @@ gnome_shell_plugin_class_init (GnomeShellPluginClass *klass)
 
   plugin_class->confirm_display_change = gnome_shell_plugin_confirm_display_change;
 
-  plugin_class->plugin_info       = gnome_shell_plugin_plugin_info;
-
   plugin_class->create_close_dialog = gnome_shell_plugin_create_close_dialog;
   plugin_class->create_inhibit_shortcuts_dialog = gnome_shell_plugin_create_inhibit_shortcuts_dialog;